package com.xbh.Book.dao;

import com.xbh.Book.pojo.Book;

import java.util.List;

/**
 * @program: JavaWebExer
 * @description:
 * @author: 许宝华
 * @create: 2021-04-23 08:22
 */

public interface BookDao {
    //增加图书
    public int addBook(Book book);
    //删除图书
    public int deleteBookById(Integer id);
    //修改图书
    public int updateBook(Book book);
    //查询单种图书
    public Book queryBookById(Integer id);
    //查询多种图书
    public List<Book> queryBooks();

    Integer queryForPageTotalCount();

    List<Book> queryForPageItems(int begin, int pageSize);

    Integer queryForPageTotalCountByPrice(int min, int max);

    List<Book> queryForPageItemsByPrice(int begin, int pageSize, int min, int max);
}
